﻿using System.Windows;
using System.Windows.Media;

namespace Flux.Editor.Controls
{
	public partial class ImageButton
	{
		public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof (ImageSource), typeof (ImageButton));
		public ImageSource Image
		{
			get { return (ImageSource) GetValue(ImageProperty); }
			set { SetValue(ImageProperty, value); }
		}

		public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof (string), typeof (ImageButton));
		public string Text
		{
			get { return (string) GetValue(TextProperty); }
			set { SetValue(TextProperty, value); }
		}

		public static readonly DependencyProperty ImageWidthProperty = DependencyProperty.Register("ImageWidth", typeof (double), typeof (ImageButton));
		public double ImageWidth
		{
			get { return (double) GetValue(ImageWidthProperty); }
			set { SetValue(ImageWidthProperty, value); }
		}

		public static readonly DependencyProperty ImageHeightProperty = DependencyProperty.Register("ImageHeight", typeof (double), typeof (ImageButton));
		public double ImageHeight
		{
			get { return (double) GetValue(ImageHeightProperty); }
			set { SetValue(ImageHeightProperty, value); }
		}
		
		public ImageButton()
		{
			InitializeComponent();
		}
	}
}
